/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mto.quangcao.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link position_banner}.
 * </p>
 *
 * @author    thanh.tran
 * @see       position_banner
 * @generated
 */
public class position_bannerWrapper implements position_banner,
	ModelWrapper<position_banner> {
	public position_bannerWrapper(position_banner position_banner) {
		_position_banner = position_banner;
	}

	public Class<?> getModelClass() {
		return position_banner.class;
	}

	public String getModelClassName() {
		return position_banner.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("positionId", getPositionId());
		attributes.put("positionName", getPositionName());
		attributes.put("groupCategoryId", getGroupCategoryId());
		attributes.put("pageCategoryId", getPageCategoryId());
		attributes.put("width", getWidth());
		attributes.put("height", getHeight());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long positionId = (Long)attributes.get("positionId");

		if (positionId != null) {
			setPositionId(positionId);
		}

		String positionName = (String)attributes.get("positionName");

		if (positionName != null) {
			setPositionName(positionName);
		}

		Long groupCategoryId = (Long)attributes.get("groupCategoryId");

		if (groupCategoryId != null) {
			setGroupCategoryId(groupCategoryId);
		}

		Long pageCategoryId = (Long)attributes.get("pageCategoryId");

		if (pageCategoryId != null) {
			setPageCategoryId(pageCategoryId);
		}

		Long width = (Long)attributes.get("width");

		if (width != null) {
			setWidth(width);
		}

		Long height = (Long)attributes.get("height");

		if (height != null) {
			setHeight(height);
		}
	}

	/**
	* Returns the primary key of this position_banner.
	*
	* @return the primary key of this position_banner
	*/
	public long getPrimaryKey() {
		return _position_banner.getPrimaryKey();
	}

	/**
	* Sets the primary key of this position_banner.
	*
	* @param primaryKey the primary key of this position_banner
	*/
	public void setPrimaryKey(long primaryKey) {
		_position_banner.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the position ID of this position_banner.
	*
	* @return the position ID of this position_banner
	*/
	public long getPositionId() {
		return _position_banner.getPositionId();
	}

	/**
	* Sets the position ID of this position_banner.
	*
	* @param positionId the position ID of this position_banner
	*/
	public void setPositionId(long positionId) {
		_position_banner.setPositionId(positionId);
	}

	/**
	* Returns the position name of this position_banner.
	*
	* @return the position name of this position_banner
	*/
	public java.lang.String getPositionName() {
		return _position_banner.getPositionName();
	}

	/**
	* Sets the position name of this position_banner.
	*
	* @param positionName the position name of this position_banner
	*/
	public void setPositionName(java.lang.String positionName) {
		_position_banner.setPositionName(positionName);
	}

	/**
	* Returns the group category ID of this position_banner.
	*
	* @return the group category ID of this position_banner
	*/
	public long getGroupCategoryId() {
		return _position_banner.getGroupCategoryId();
	}

	/**
	* Sets the group category ID of this position_banner.
	*
	* @param groupCategoryId the group category ID of this position_banner
	*/
	public void setGroupCategoryId(long groupCategoryId) {
		_position_banner.setGroupCategoryId(groupCategoryId);
	}

	/**
	* Returns the page category ID of this position_banner.
	*
	* @return the page category ID of this position_banner
	*/
	public long getPageCategoryId() {
		return _position_banner.getPageCategoryId();
	}

	/**
	* Sets the page category ID of this position_banner.
	*
	* @param pageCategoryId the page category ID of this position_banner
	*/
	public void setPageCategoryId(long pageCategoryId) {
		_position_banner.setPageCategoryId(pageCategoryId);
	}

	/**
	* Returns the width of this position_banner.
	*
	* @return the width of this position_banner
	*/
	public long getWidth() {
		return _position_banner.getWidth();
	}

	/**
	* Sets the width of this position_banner.
	*
	* @param width the width of this position_banner
	*/
	public void setWidth(long width) {
		_position_banner.setWidth(width);
	}

	/**
	* Returns the height of this position_banner.
	*
	* @return the height of this position_banner
	*/
	public long getHeight() {
		return _position_banner.getHeight();
	}

	/**
	* Sets the height of this position_banner.
	*
	* @param height the height of this position_banner
	*/
	public void setHeight(long height) {
		_position_banner.setHeight(height);
	}

	public boolean isNew() {
		return _position_banner.isNew();
	}

	public void setNew(boolean n) {
		_position_banner.setNew(n);
	}

	public boolean isCachedModel() {
		return _position_banner.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_position_banner.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _position_banner.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _position_banner.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_position_banner.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _position_banner.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_position_banner.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new position_bannerWrapper((position_banner)_position_banner.clone());
	}

	public int compareTo(com.mto.quangcao.model.position_banner position_banner) {
		return _position_banner.compareTo(position_banner);
	}

	@Override
	public int hashCode() {
		return _position_banner.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.mto.quangcao.model.position_banner> toCacheModel() {
		return _position_banner.toCacheModel();
	}

	public com.mto.quangcao.model.position_banner toEscapedModel() {
		return new position_bannerWrapper(_position_banner.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _position_banner.toString();
	}

	public java.lang.String toXmlString() {
		return _position_banner.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_position_banner.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public position_banner getWrappedposition_banner() {
		return _position_banner;
	}

	public position_banner getWrappedModel() {
		return _position_banner;
	}

	public void resetOriginalValues() {
		_position_banner.resetOriginalValues();
	}

	private position_banner _position_banner;
}